<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <style>
        body,html {
            margin:0;
            padding: 0;

        }
        body,html,#app,.content{
            height: 100%;
            width: 100%;
        }
        #app {
            overflow-y: auto;
            position: relative;
        }
        #app header {
            height: 300px;
            background-color: #2ccf6d;
        }
        .content{
            background-color: #2c3e50;
            display: flex;
        }
        .menu {
            background-color: #1890ff;
            width: 100px;
            height: 750px;
            position: sticky;
            top: 0;
            overflow-y: auto;
        }
        .user-content{
            flex: 1;
            background-color: #18c9f8;
        }
        .user-content p, .menu p {
            line-height: 40px;
            color: #fff;
            text-align: center;
        }
    </style>
</head>
<body>
    <div id="app">
        <div style="min-height: 100%;">
            <header></header>
            <section class="content">
                <div class="menu">
                    <p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p><p>菜单</p>
                </div>
                <div class="user-content">
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                    <p>123</p>
                </div>
            </section>
        </div>

    </div>
</body>
</html>
